import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

// vue.config.js
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  base: "./",
  plugins: [vue()],
  server: {
    host: "0.0.0.0",
    port: 8080,
    open: true,
  },
  resolve: {
    alias: {
      // 键必须以斜线开始和结束
      "@": path.resolve(__dirname, "./src"),
    },
  },
});
